﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace cstdx.Proto.Std;

/// <summary>
/// 证券数量响应包结构
/// </summary>
public class SecurityCountResponse : IUnmarshaler
{
	/// <summary>
	/// 证券数量（16位无符号整数，小端序）
	/// </summary>
	public ushort Count { get; set; }

	/// <summary>
	/// 从字节数组反序列化响应数据
	/// </summary>
	/// <param name="data">原始响应字节数组</param>
	public void Unmarshal(byte[] data)
	{
		SerializationHelper.DefaultUnmarshal(data, this);
	}
}
